<?php
 require_once "inc.php"; 
      if($_GET['type']=="admin"){
	  		$rpage='admin_area';
			$username = "admin@saviance.com";
			$password = "admin";
			$_SESSION['login_type']="admin";
			
	  }elseif($_GET['type']=="candidate"){
	 		$rpage='personal_details';
			$username = "candidate@saviance.com";
			$password = "candidate";	
			$_SESSION['login_type']="other";  
	  }elseif($_GET['type']=="student"){
	  		$rpage='student_area';
			$username = "student@saviance.com";
			$password = "student";
			$_SESSION['login_type']="other";
	  }elseif($_GET['type']=="placement"){
	   		$rpage='placement';
			$username = "placement@saviance.com";
			$password = "placement";
			$_SESSION['login_type']="other";	
			 }elseif($_GET['type']=="Faculty"){
	   		$rpage='profile';
			$username = "faculty@saviance.com";
			$password = "faculty";	
			$_SESSION['login_type']="other";	
					
	  }
	  elseif($_GET['type']=="parents"){
	   		$rpage='parents_area';
			$username = "parents@saviance.com";
			$password = "parents";	
			$_SESSION['login_type']="other";	
			
}
	  ?>

<!DOCTYPE HTML PUBLIC  "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<!-- page title -->
<title>Saviance</title>
<!--
A free web template by spyka Webmaster (http://www.spyka.net)
//-->

<link rel="stylesheet" href="images/jquery.tabs.css" type="text/css">
</head>
<body>
<div id="wrapper">
  <?php require_once "header.inc.php"?>
  <?php if($_GET['type']=="candidate") require_once "breadcrum2.inc.php"?>
  <!-- content start -->
  <div id="body-wrapper">
    <!-- BREADCRUMB NAVIGATION -->
  <div class="bcnav">
       <div class="bcnav-left">
         <div class="bcnav-right clear">
           <h3></h3>
           </div>
       </div>
     </div>
   <div id="body" class="clear">
			<div class="clear">
				<table cellspacing="0" cellpadding="0" border="0" align="center" style="border: 1px solid rgb(222, 222, 222); background: rgb(255, 255, 255) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
    <tbody><tr>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td >&nbsp;</td>
    </tr>
    <tr>
      <td height="35" class="text" style="padding-left: 340px;">Username : <input type="text" title="Username or Email" size="25" class="text_field" value="<?php echo $username;?>"></td>
    </tr>
    <tr>
      <td height="35" class="text"  style="padding-left: 340px;">Password : <input type="password" title="Password" size="25" class="text_field" value="<?php echo $password;?>"></td>
    </tr>
    <tr>
      <td height="38" style="padding-left: 340px; padding-top: 5px;"><div style="float: left;">
      
          <label><input type="submit" value="Login" name="commit" class="all_button" onclick="location.href='<?php echo $rpage;?>';">&nbsp;&nbsp;&nbsp;   <a rel="forgotpass" class="login_forgot" href="forgot_pw.php">Forgot your password?</a></label>
        </div></td>
    </tr>
    <tr>
      <td height="38" style="padding-left: 340px; padding-top: 5px;">
        <div class="login_options">
	  
	
	  
	  
	 <!-- 
	  &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;
   -->        
		<!--  <a href="registration.php">Register Now</a>-->
          
          <span class="login_register">&nbsp;&nbsp;&nbsp;</span></div></td>
    </tr>
    <tr>
      <td height="45"></td>
    </tr>
  </tbody></table>
				
	  </div>
			<!-- end three column -->

			
			
			
		</div>
   </div>

  <!-- content end -->
  <!-- footer start -->
   <?php require_once "footer.inc.php"; ?>
  <!-- footer end -->
</div>
</body>
</html>